#include <iostream>

using namespace std;

enum color {
    red = 1,
    orange,
    yellow,
    green,
    blue,
    violet
};

int main(){
    color choice;
    int i;

    cout << "Which is your favorite color:" << endl;
    cout << "Red(1), Orange(2), Yellow(3), Green(4) ";
    cout << "Blue(5), Violet(6)" << endl;
    cin >> i;
    choice = color(i);

    switch(choice){
        case red:
            cout << "Red is a nice color!" << endl; break;
        case orange:
            cout << "Orange is a nice color!" << endl; break;
        case yellow:
            cout << "Yellow is a nice color!" << endl; break;
        case green:
            cout << "Green is a nice color!" << endl; break;
        case blue:
            cout << "Blue is a nice color!" << endl; break;
        case violet:
            cout << "Violet is a nice color!" << endl; break;
        default:
            cout << "You did not enter a valid color, goodbye." << endl;
            break;
    }
    return 0;
}
